import java.util.Scanner;
/**
 * calculate the average of three scores
 * 
 * @author Amrita Mukherjee
 * @version 02/10/2012
 */
public class ProcessExample2
{
   public static void main(String[] args)
    {
        //create scanner object called keyboard
        Scanner keyboard = new Scanner(System.in);
        
        //tell the user what this program does
        System.out.println("This program calculates the average of three scores. ");
        
        //prompt the user for three scores
        System.out.print("Enter three scores (ex: 56 57 89) : ");
        
        //now input the numbers
        int score1 = keyboard.nextInt();
        int score2 = keyboard.nextInt();
        int score3 = keyboard.nextInt();
        
        //  process: Calculate the average
        double average = (score1 + score2 + score3)/3.0;
        
        //now print the average
        System.out.println("The average score is: " + average);
    }
}

/*
 * my test session:
Enter three scores (ex: 56 57 89) : 45
67
89
The average score is: 67.0

 * 
 */
